package com.jstzrmyy.mams;

import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.PreferenceScreen;

public class OrientationPreferenceFragment extends PreferenceFragment {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// Load the preferences from an XML resource
		addPreferencesFromResource(R.xml.app_preference);
	}
	
    @Override  
    public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {    
    	if (preference.getKey().equals("orientation_capture_preference")) {
            return true;
        }
        return super.onPreferenceTreeClick(preferenceScreen, preference);
    }
    
}
